<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <style>
    svg {
      border: solid 2px black;
    }
  </style>
  <body>
    <!-- 属性：fill stroke stroke-width transform opacity ||  xmlns: xml namespace -->
    <svg width="800" height="400" fill="red" stroke="black" stroke-width="2" viewBox="100 100 300 300" preserveAspectRatio="xMidYMax meet">
      <circle cx="100" cy="100" r="50" fill="red"></circle>
      <circle cx="100" cy="100" r="5" fill="black"></circle>
      <rect x="200" y="300" width="200" height="100" fill="blue"></rect>
      <circle cx="400" cy="100" r="50" fill="red"></circle>
      <circle cx="400" cy="100" r="5" fill="black"></circle>
    </svg>
  </body>
</html>
